package three;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;

public class main {
    public static void main(String[] args){
        LocalDateTime startingTime=
                LocalDateTime.of(2021,2,3,12,30,0);
        ZonedDateTime zonedStartTime=
                startingTime.atZone(ZoneId.of("America/New_York"));
        LocalDateTime endingTime=
                LocalDateTime.of(2021,2,3,12,51,1);
        ZonedDateTime zonedEndTime=endingTime.atZone(ZoneId.of("America/New_York"));

        HoldingTimeByZoned holdingTime=new HoldingTimeByZoned(zonedStartTime,zonedEndTime);
        PriceCalculate priceCal01=new PriceCalculate();
        double cost;
        cost=priceCal01.calculate(holdingTime.getHoldingTime());
        System.out.println("cost:");
        System.out.println(cost);
    }

}
